<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>12.模块导入.html</title>
</head>
<body>
    <script type="module">
        // 导入所有  再给其一个别名
        import * as model from "./js/a.js";
        console.log(model.arr);
        console.log(model.name);
        model.say()
        // 导入所有 并且进行结构赋值
        import {arr,name,say} from "./js/a.js";
        console.log(arr);
        console.log(name);
        say()

        import  value from "./js/b.js";
        console.log(value);
        console.log("================================");

        import  data,{myname,myarr,mysay} from "./js/c.js";
        console.log(data,myname,myarr,mysay);
    </script>
</body>
</html>